tags:
- code
topic: List
difficulty: Beginner
link: https://www.codewars.com/kata/57cc975ed542d3148f00015b/solutions/python
date: 2023-10-20Problem
You will be given an array
aand a valuex. All you need to do is check whether the provided array contains the value.
Array can contain numbers or strings. X can be either.
Returntrueif the array contains the value,falseif not.
def check(seq, elem):
return (elem in seq)
[N/A]